<div class="well">
	<blockquote>
		<h3 class="text-error">My Page - Basic User Information</h3>
	</blockquote>
	<form class="form-horizontal" id="my_page_block">
		<div class="control-group">
			<label class="control-label">User ID</label>
			<div class="controls">
				<span class="inline_text"><?php echo $user['username'];?></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">User Type</label>
			<div class="controls">
				<span class="inline_text"><?php echo (($user['category'] == 1) ? 'Administrator' : 'Customer');?></span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputPassword">Password</label>
			<div class="controls">
				<div class="input-append">
					<input type="password" id="inputPassword" name="password" placeholder="Enter password before save">
					<button class="btn" type="button">Change Password</button>
				</div>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">Name</label>
			<div class="controls">
				<input type="text" name="name" value="<?php echo $user['name'];?>">
			</div>
		</div>
		
		<?php if ($user['category'] == 2):?>
		<div class="control-group">
			<label class="control-label">Phone</label>
			<div class="controls">
				<input type="text" name="phone" value="<?php echo $customer['phone'];?>">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">E-mail</label>
			<div class="controls">
				<input type="text" name="email" value="<?php echo $customer['email'];?>">
			</div>
		</div>
		<?php endif;?>
		
		<div class="control-group">
			<div class="controls">
				<button type="button" class="btn btn-success" id="save">Save</button>
			</div>
		</div>
		
		<?php if ($user['category'] == 2):?>
		<button type="button" class="btn btn-small btn-info" id="view_passengers">View common used passengers</button>
		<?php endif;?>
	</form>
</div>
